package com.shg.admin.service.impl;

import com.shg.admin.bean.Account;
import com.shg.admin.mapper.AccountMapper;
import com.shg.admin.service.AccountService;
import org.springframework.stereotype.Service;

@Service
public class AccountServiceImpl implements AccountService {
    
    private final AccountMapper accountMapper;

    public AccountServiceImpl(AccountMapper accountMapper) {
        this.accountMapper = accountMapper;
    }

    @Override
    public Account getAccountById(Long id) {
        return accountMapper.selectAccountById(id);
    }
}
